package com.ssm.dao;

import com.ssm.entity.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserDao {
    UserVo selectUser(long id);

    UserVo queryByUserName(@Param("username") String username);

    List<UserVo> queryAll();
    /**
     * 查询用户的所有权限
     *
     * @param userId 用户ID
     */
    List<String> queryAllPerms(Long userId);
}
